const mongoose = require('mongoose')

// 设置属性类型
let ProjectSchema = new mongoose.Schema({
  name: String,
  StorageAddress: String,
  status: {
    type: String,
    enum: ['进行中', '已完成', '已暂停', '已取消']
  },
  description: String,
  startDate: {
    type: String,
  },
  endDate: String
})
let ProjectModel = mongoose.model('Projects', ProjectSchema)

module.exports = ProjectModel